/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package org.abc;

import java.io.FileInputStream;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>Project: jse2303 - InterDemo
 * <p>Powered by webrx On 2023-07-14 14:36:58
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class InterDemo {
    public static void main(String[] args) throws Exception {
        //labmdba表达式，表达的是 Inter函数式接口
        //Inter inter = a -> a * a;
        //System.out.println(inter.pf(3));

        //System.out.println(Inter.pf(3));
        //System.out.println(Inter.hell());

        Inter in = new InterImpl();
        System.out.println(in.pf(3));

        //接口 实现接口 implements
        List<String> list = new ArrayList<>();

        //抽象类 继承关系 extends
        InputStream is = new FileInputStream("aa.txt");
    }
}
